<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<f:loadBundle basename="MessageResources" var="messages" />

<ui:composition>
	<h:form id="reportLogTableForm">
		<p:dataTable id="reportLogTable" var="reportLog"
			value="#{reportLogBean.allReportLogs}" rowKey="#{reportLog.id}"
			selection="#{reportLogBean.selectedReportLog}" paginator="true"
			paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
			currentPageReportTemplate="#{messages.PAGE_LABEL}" rows="15"
			rowsPerPageTemplate="5,10,15,20,30,50,100" selectionMode="single"
			lazy="true" editable="false">

			<f:facet name="header">
				<h:outputText value="Report Log" style="float: left"/>
			</f:facet>

			<p:column id="messageColumn" headerText="Message">
				<h:outputText value="#{reportLog.message}" />
			</p:column>

			<p:column id="createdDateColumn" headerText="Date">
				<h:outputText value="#{reportLog.createdDate}" />
			</p:column>
		</p:dataTable>

		<p:blockUI block="reportLogTable" trigger="reportLogTable">
        		LOADING<br />
			<p:graphicImage value="resources/images/loading.gif" />
		</p:blockUI>
	</h:form>
</ui:composition>

</html>
